buf fixes
fix using env in rules