v0.2: restructured logic and plugin output