cleanup hash
add end point query param