modified to use variables obtained via get_defines.php