extract version as a variable