beforeStart -> onStart