make code more like webpy style.