- handler parameter refactored out of constructor into connect method