fix preload stuff