refactoring, adding metadata to appender