getEvents and getDevice added