added startup hooks