allow locals in render method