fix #34: set debug variable to True in serve mode