polish a little bit of log and packet queue