some error handling
missing categories