return output to app