[new model] add ErlBeam
[new model] adjust APIs