restructure (un)installation scripts; modularize