minor refactoring
sync with file system when opening default scratch