refactored to support kolich-httpclient4-closure 1.0