added debug option to config