fixed it up a bit.  Now you can leave out the cb name if you are in a coookbook/dir
better error checking. still a toy.