(unfinished,untested) output to jack
patch from kfoltman
(unfinished,untested,merged) output to jack