adds logic for handling checkins