implemented checkin command