refactor package, implement remote up command