optim in dist parameters file for pagodabox