plotgen.php needs merged