fixed migrations; add default_api migration; bug fixes;