fixes issues on hqproxy0
Merge pull request #216 from dimagi/hqproxy0-fix

fixes issues on hqproxy0