added source location backup to main loop