finished version of check_mass_http