lookahead relocated to separate file