mutex stuff for broken windows, needs rework