added memd system call helpers