switched to ssl, implemente index management