some fixes for scratchpads