moved result check after output of version information