refactoring saving scans into seperate class, using buffer for old locations