i guess i know where the error is namedScratchpadManageHook :: NamedScratchpads -- ^ Named scratchpads configuration -> ManageHook namedScratchpadManageHook nsps = do ns <- Map.elems . nspScratchpads <$> liftX (fillNSPState nsps) composeAll $ fmap (\c -> query c --> hook c) ns i am fairly sure this means the query needs to already flag the scratchpad before the NSP hook runs