making the events work with unix timestamps. actually dynamic now