bunch of stuff based on priestjim/chef-php