add brews backup support
add php