replaced print and return pairs for missing paths etc. with raising ValueError exceptions