updated method generation script