split the mainframe and removed annoying warnings