replace blocking call with configuration