Fixed load to work with ranks and parts. Cleaned up gen_filelists