refractorred bootstrap into a different file