auto replication works now, added pretty much all of the file interaction apis