added feilds and manually fixed migration scripts