random stuff, exception handling, bug fixes and time delay