publish and permission improvements