actually added get_win_size and init_termianl