setup output working