change default port and fix arrays recognized as objects