fixed indent of 'try'
Modified: use stderr for error mesg