bug fix: server restarting and breaking ajax