just once
put API bits in a thread, just because