module fixes and api tweak
fix module_session reference
Merge pull request #798 from unikent/feature/module-fixes

module fixes and api tweak