mirror remote to local, still some issues need fixing