add time limit for monitor