auto name detection