fix preparation
fix permission template