modify parser to use implicit scope