init api for games and users