don't pass down handler to deferred if they are not functions