move preload check after other loads