refactor webserver items to attributes