adds new flag for edge clearing in border building