patch for compatibility with puppet 3