straightened out all "port" variables (?)