switched argparse to optparse for compatibility reasons