move takeUntil after subscribeOn/deliverOn so it works