check remote only when in root dir