add logging, set up module to be a grain