added auto zoom support