debug mode for testing