patched to support migrate module

pulled latest version from repo