added all the od code from cadium