better puppet apply script