support Resource.build for remote fetching and attr building