make a script for using monitor with automask