clean up rjs config. defer sm2 init. tests pass.