patched to reflect newer charactercontroller interface