stream parser for strict mode working