fixing data migration
middleware and context processors