tweak php scripts and template default parameters.