adjust some js and adjust checkIn strategy