improved rest methods for events and better implementation