pulling method apart to have two http servers