add autofocus script and reorganized