adding beforeStart() callback, thank you @anderssvendal