refactor config.php to common.php