fixed migrations, fixed debugging