credit to https://github.com/Cominch/oai_repository/commit/fdfb3ab4dc287a3e74ed53b5876520820697a140