wip: removed redis call, and adding events class