optionally return output for spawn inline