fix bug with public render method. a few tweaks