added sys_read and sys_write functions