revert realtime api and use polling