switch to stdio