snw almost finished, need to test
ipc message exchange mechanism working. rnext and slast need to be reviewed