added time to monitor errors