stderr support for exec function