rewrite migrations, update_docs command