add entrypoint which read port number from command-line argument.