refactored to support Target's Chef installation