add utility function, game_api