improved puppet file