added 2> and 2>> to redirect stderr