added compatibility check for -r and --rtrick flags
Added file support for -rtrick flag