change err for afilemanager