fixed some native filesystem operations