add a function to ensure module loaded