fixed perms of I/O and added memory call impls