added user main loop when ip