High speed and flexible packaging for complex packaging tasks