fix bug in handling of queue of publis request. add may debug print in client in debug mode