fixed things, fgetattr, handles, and checking cached attr