added auto conversion to name==main