moving handler_new to handler