parsing args and reading the endpoint file