fixed deprecation and incorrect exception handling
added sample generation
reboot crawl on nil response