added -t and -S when -R is on