select mode to monitor dir change