[backflow] add options for boundary condition