made -getResource concurrent