add compatibility for puppet 3