checkin checkout logic rewritten
debug=false