added AcidState's template haskell requirements.