edit getAllProfiles to get triggers and actions