this code will not run synchronously and could be a source of bugs. we should make sure that the following code is only run when this is complete. right now they're running asynchronously together.