fixing -o option