move source/target validation to parseFiles, fixes #23