fix
review
review parse-rules()