working on actions API