rework web resources concatenation to be more robust