sql & polymode etc
polymode and init stuff