install packages first and use local cp instead of wget