fix up the type of main.

get rid of IO, Either Left.