assert on errors added