added -o option