parse out remote correctly