implemented class filtering so messages are only sent to specific class
of handlers
cleanup