update TRANSLATE_IMED, import hardcore versions of atoi