modified for windows and cubrid