added safety for command line *Scratch*
make sure that if the buffer doesn't exist, create it