sm: implement RMA

write and read work, need to test completion messages