updated run file to not poll, but listen for events