i removed the public directory from the module.
on you can access principals by their xpcomed interface nsIPrincipal.