automatic optimize versions