move datastore get into package 'internal'