refactor socket2me model