fixed ldif dump and workarounds to continue failed upgrade