better comments, and make it work for SL6
minor fiddles