new file:   utils/struct_optimizer.pl