remote: refactory operations of remote