better import style and bugfix on digit->int translation map