allowed specifying model as a file.