new parSub.c and better file handling for update.php