added a lot of case stuff to style.php