bug options not using buildEndpoint