moved ResponseHandler to helper