breaking unload method into two, removing console log