fixed UserObj permissions bug, templating fixes