refactored direct appender functionality