added delete, and debug options