made parser resolution independent