make gapi loading less race-y