added possibility to return empty results
gui version for store_file for easy testing