refactor and create romfs