Cohomoloy theories based on flats