adds unload method