change preload to use internal module