consolidated resource retrieval on host to single function