Get ports working, improve ports error messages