some changes on buffer handling in C/CL backends.