added queue based logging