add version var to modules
fix dynamic reloading of modules