make multiple callbacks work