get events and publish are working correctly