saving a ref in order to remove the unload method