initial implementation of rebase for MongoMk