backend for secure categories mostly done (todo pm groups)