better error handling, scan dependencies and dump them to disk also, added timeout of 5s for execution