cleaned up functions.php for easier deployment