insertEffects: start work on query
insertEffects: added r/w/a query
insertEffects: fixed up lambda application (I believe)