reverted last commit, and added proper check on provider level whether the file to be imported exist