Detailed design and retrofit of multipurpose batch plants