towards a better example, with single servlet