An electromechanical surgical device, comprising: an end effector configured to perform at least one function, the end effector including: a rotatable drive screw having a coupling member at a proximal end thereof; an opening formed in a proximal surface of the end effector; and a flexible drive cable rotatably supported therein and extending therefrom, wherein the flexible drive cable receives rotational forces and transmits said rotational forces to the drive screw to actuate the end effector; and characterized by a shaft assembly including: a poximal neck housing supported at a distal end of the outer tube: a distal neck housing pivotally connected to the proximal neck housing, wherein a distal end of the distal neck housing is configured and adapted for operative connection with the end effector; wherein, when the end effector is connected to the shaft assembly, the flexible drive cable extends through the proximal neck housing and the distal neck housing; a coupling lug extending distally from the distal neck housing, the coupling lug being configured to be inserted into the opening of the end effector when the end effector is connected to the shaft assembly; and a lock actuator disposed on the end effector, the lock actuator having at least a first position and a second position, wherein when the lock actuator is in the first position the coupling lug of the shaft assembly is insertable into the opening of the end effector upon a connection of the end effector to the shaft assembly, and when the lock actuator is in the second position the coupling lug of the shaft assembly is prevented from insertion into or removal from the opening of the end effector. an end effector configured to perform at least one function, the end effector including: a rotatable drive screw having a coupling member at a proximal end thereof; an opening formed in a proximal surface of the end effector; and a flexible drive cable rotatably supported therein and extending therefrom, wherein the flexible drive cable receives rotational forces and transmits said rotational forces to the drive screw to actuate the end effector; and characterized by a shaft assembly including: a poximal neck housing supported at a distal end of the outer tube: a distal neck housing pivotally connected to the proximal neck housing, a rotatable drive screw having a coupling member at a proximal end thereof; an opening formed in a proximal surface of the end effector; and a flexible drive cable rotatably supported therein and extending therefrom, wherein the flexible drive cable receives rotational forces and transmits said rotational forces to the drive screw to actuate the end effector; and characterized by a shaft assembly including: a poximal neck housing supported at a distal end of the outer tube: a distal neck housing pivotally connected to the proximal neck housing, a poximal neck housing supported at a distal end of the outer tube: a distal neck housing pivotally connected to the proximal neck housing, a coupling lug extending distally from the distal neck housing, the coupling lug being configured to be inserted into the opening of the end effector when the end effector is connected to the shaft assembly; and a lock actuator disposed on the end effector, the lock actuator having at least a first position and a second position, wherein when the lock actuator is in the first position the coupling lug of the shaft assembly is insertable into the opening of the end effector upon a connection of the end effector to the shaft assembly, and when the lock actuator is in the second position the coupling lug of the shaft assembly is prevented from insertion into or removal from the opening of the end effector.