it works, sort of - not yet finished tidying up code, but most of functions are now namespaced + it's perhaps a bit more readable. hopefully.'