extract file parsing out of category object