add simple_cache for events and logs
fix formatting