change endpoint use to module