reenable delays
split up handle_event and remove variable confusion
get rid of some appallingly long lines