initial working version of fetch