added config and migration