fixed a couple of bugs that prevented production hosting