prepare servlet