added debug options