backend tidied - events and classes