added endpoint command-line argument