optimize size, extract version to one place