Improvements to chef

still have bugs to fix, but we sorta have a working system