set up resource consumption on build