implemented simple hash check and broke down c_engine.cpp