added output wrapper