added output buffer

Fixes problems with the upcoming profile update.