moving version check to own module