use flags for port, default 5000