debugged in accordance with the latest NCBI dmp bugs