update (last type_index, auto_handler fix for NIX)

suppodt for last type_index and auto_handler fix for NIX