changed a int16 to int32 for huge directories