added sample code for ipc via files