fixes for compatibility with kohana 3.3