various things

* pass 'config' and 'util' to modules
* tidy up reloading