- try to optimize notify behaviour: notify only when queue is empty