replaced custom 'marker' option with 'events' option