sockets and cloud vs local definitions