used optparser
added strip option