added the connection API