fixed issue with remote hosts