implement hook process and sublime output server.