ugl: debug as flag