delete migrations, and lot of bugfixing