add missing files, working version for cuy config, update ref. selection