splitting the remote and local commands into their own modules