add checks
improve http check