issues: improved handling of errors and missing values