added restriction parsing