refined apache script in apache_new_parse