refactor the structure and fed-config.js