truncate, refactoring error messages, remove dep array-enhacements