fixed a bug with trading with ports and it seems to work now