added promise pattern to retrieve details