sync for the most part is working, still need to handle directories.