bugfix. Replace dj.asserts with warnings and errors.