refined plugin and output formatting