longpolling working
some backend improvements