config open and closes ports inside save/read, redone pointers api