refactor meta model and server