ref(builder): refactoring of stdout plugin to avoid overflow