improve debug tasks