made changes in BasicEndpoint class, now the endpoint parameter would be ignored