wrote user extension and api connection