interface to baseSelections to make optimization easier
really quick and REALLY dirty script to print the optimization procedure to run
modified code to make optimization easier to run, cleaned up where possible