updated inode and api functions