draft code for auto alts management