rename handler to mainHandler
.