increased time delay and added error log catch