output stderr too, but there is a memory leak in execution it seems