fixed -r option