move MPEngine to lib directory