added safety if to svn wrapper