add in bluesleep stuff from grouper