adding a flags option to override default rsync flags