fixes on esize and max_channel