saving opened file added, fix-needed references #3