replaced optimist by simple argument handling