simplify http handlers