standardized success es write callback

also switched basename to name