ex. 6 - some fixes in servlet