improved parsing for redis url