comment
implemented debug option