intersection code, queueing for api calls