better naming for res publishers
added sleep in server if connection cannot be established. prevents busy spinning