fix issues with unreadable errors on build