create modules for sockets and mock data