fixed #18 now using put instead of putfile to avoid using the filesystem