improved select poll
improved buffer and packet