created possibility to redefine a default waiter by a block