update httpHandler methode