added api session singleton