prepare to read binary kernels