added monitoredsocket to simplify use of monitors