move to a poll loop

So I can eventually handle more things at once