maybe prevent this thing breaking when serializng to sessions.