added cfg files
separated processCU function