separate connection rest api