fixed pause bug, among other things