general functionality
With filepicker