refine plugin invocation and log output