finished basic servlet functionality