New insight into the molecular control of bacterial functional amyloids