fixed issue where we were returning the promise rather than the result.