solve async problem (I hope)