improve resource building