added 'dir' and 'r' options