fix auth & rendering