improve resource loading
Merge remote-tracking branch 'origin/master'