updated to reflect changes in the underlying API