c++98, works with kuros03