remove vars path and entity affiliate