WIP: begin switch to generate all smb from js