add arch() and kernel_v() function