fixed mock init issue
check for file first file chooser shit