added some safety stuff for brew