fix long poll, add login part back