race condition issue. looks fixed
timeout removed