sorting out some bits and pieces