fixed saving files
started coding for scanner synchronization