added real time api