Sorting some grouped things + adding debug statement for basic auth