adds debug flag

when true, log client connections/disconnections