updates to script. using exponential costs now