move preload out of env