added missing code for using external actions