check before load, and unload if needed