handle old version