begin of legacy mysql for specific reasons