solved version problems inside misc.cpp