connect bin to index