make port input as range input
edit warning
init index_context_t, index_argument_t
add loop, create thread