making refinery compatible with another engine controlling auth