fix command line and add default port