perhaps some inline comments at least to clarify this otherwise perl-esque method :)