sync: grep support; possibly bugs exist