added ecb and removed dirtree