deleted unreachable code
break so the client gets redirected
deleted unused import
added a defaulthandler