added debug message to plugin