use when module to convert async calls to promises for LD Service