twisted logic for install or update deployment