integrate versioning code into existing install/remove functions