add autoconfiguration of autonumeric and upgrade main class