fixed payload rotation and added some debuglines