minor bug fixes to mogration module - it works now