add ecb support