added visibility and category to the schema