updating api for polling, WIP