merge loookahead logic to master

makes things a little more productive.