adapted to handler class