generate mock data both on client-end and server-end