small clean-up to remote.php