added schemas for events and profiles