fixed bug with write-access syncing; cleaned up debug messages