trim optimist into minimist