add unload method