working on new monitor code