modified svn wrapper function