added -o option to linux version