fix setup to deal with scripts