fixed setup_routines for removing prev installation