refactor of ws_actions, now has a queryfn