adding a beforeStarting section