added sample .swc file; added UnboundLocalError exception