actions should be an array