added some scrap code to do some exponential curvefitting, these should be deleted before release