broken again.  adding support for differing sample and output sizes