modify check_http to be better