combine two handlers into one