move setfilem out of dll