add puppetmaster code