the primary chamber volume can be at least about 0 75 cubic inches and or the secondary chamber volume can be less than about 0 5 cubic inches in another embodiment the porting configuration is reversed as compared to the above thus the secondary chambers are ported allowing pressurization of the secondary chambers and the primary chambers are not ported and are not pressurized porting of the chambers can also be done in multiple configurations for example the exhaust port can be located in or along the primary and or secondary track generally in the track which is not working as a compressor or expander or in a separate conduit opening into the primary chambers likewise the input port can be via a separate conduit usually the intake port is located proximally to the point of intersection of the primary vanes and secondary vanes and the input port is not in fluid communication with a pressurized exhaust port the machine can be configured as a compressor or pump with an external means for supplying input power connected to drive said first and or second rotors or can be configured as an expander with an external means for using output power connected to said first and or second rotors or combination thereof further it can be configured as a combustion engine by including a fuel igniter the application of the improvements described herein can be applied to the machines described in u s pat no 5 233 954 issued aug 10 1993 and tomcyzk united states patent application publication 2003 0111040 published jun 19 2003 and other toroidal and or cylindrical vane machines the.