adding the ability to specify a url as well as binary data