delay in clientmain