fix public and view serving