generate habit model
lots of stuff