frame in event logic, not yet finished pending small test implementation and review