red me update and library structure