added changes for coffee-react fork