moving over code from brewSys