multiple output fixes