resolved errors, but render() still broken.