remove unneeded refresh and add small sleep