fixup main