file management skeleton (upload and retrieving)