Move get_store above code that needs it
We need multiple devs and multiple paths, change the args format
Remove the fid_exists check outside the loop