added pre migration script