added migrationDir config option