extract version