minor refactoring on webRoot resource