add ECB support