make returned values consistent between registerFile and registerReplica