missing 'end' to the begin/rescue above?