base on quarx2k source