added dpdemail and dpdevent - added custom events