adding sockets and post save hooks