changes in puppetmaster and add some methods missing