adapt response wrapper to new remote-host library version 1.2
code refactor