better error handling for custom langauge files