prevent extra DB select when inheriting remote file
return null for getByID instead of invalid instance
fix deep-save failing
synchronization improvements