removed unused usings, refactored monitor script