dir with specific options code