add a debug checkbox to enable debugging logs, and remove extra list ends