use predefined actions
add query support, adapt to kwf changes