remove duplication, comment out waitforUIsync