starting to combine console and ui modes