Revert "too many groups, only take first??"

This reverts commit 5be41948d48bc12a81c655701d2f1cce423d5ea6.
Revert "send content length when serving files"

This reverts commit 212431ae03d21810c077f7d36dbd12251713ef30.