moved config required into functions.php