try stuff with wait functions