fixing unload and removing inline