implemented simple connection slicing