Revert "removed separate get function"

This reverts commit 7d284112edb69aa0d8eabbd30760bcb2cdd2fd0b.