add debugging switches

Signed-off-by: Peter Lieven <pl@kamp.de>