added ability to look ahead on statements