V0.1.0 bugfixes: leaf drawtype, debug param