replace trollop with optparse