debug mode for async