working out what is really going on with the variable calculations
working much better now
noting logs
example config file