fix retval case cuz windows is dumb