made control port socket and control port auth cookie configurable