adding remapHost method