fixed some warnings of deprecations by new puppet