adding interp directive and fix permiss