small fix - generify resource getter