added Ondn exceptions and datetime