safer resources loading from pre-defined directory