updated the monitor compile script