make sure output is going to the right place