fork ncfs from cuhk, change some error