moved log version to own function