(rpy) add kernel library