extract mount-socket and mount-model-socket-event to separate module to avoid "use unsupported hook" error