ike - a code wrapping up Karthik's version of JOE using AD