made -debug option do something meaningful