revised mandoku-initialize function.