added pre start hook