add output in api