half way through rewrite of rclone