Shifted file creation from client to document class