updated to handle https / and /events/