move out redis script load from connect method