add rest api polling support

yep I know, but still it's a bit weird. We let it there