migrating to new actions API