change URL.parseStream to Apache HTTP request, add gen file to ignore list