when i wrap each promise resolution in an , it all works