added main loop in odin.ido