native lib & cascade file loading fixing and optimizing.