hack, don't use mime output (needed for my use)