init
structure ok, can query category
category: write to file ok