AG|ST: combine toolkit.main and toolkit init stuff