added selecting output directory
added o2 parser