fix bug when handler pattern is bad
test code formatting, make weblog example work again