preparation for console rewriting

having problems with gui though