add sleep in p2
added server and client for clearing cache