port rotation and offset