improve error handling in DSC files