fixed bug with port lookup