add action and key fields