getcorrectport rework

added new rule