added more options to monitor script