tried to fix port enable/reset bug - didn't work