refactored system handling of versioned files