bug fix in setup and PCA scripts