(#9) fix template permissions and names, and service patterns