fixing etc and lib order