try to fix random sqlalchemy blowups