added master switch and listener switch, added stubs for slow query logging
fixed #19 target can be passed as object or as string