fixed bugs related to relative paths
 fixed the multiple save tool bug