cleanups
factor out http check code and use httpcheck module instead.