simple monitor script