logging and stuff for cart invalid errors