rework middle-of-everywhere functionality