tweaked to allow for dist contents