added CheckAllCasts, added more shader stuff