adjusted some php files.