make servlets more flexible