add branch and filename support