added synchronous waiting support for first settings