fix defaults and add debugging infos