some fixes and redis input connection handling