use the filename and not basename as name for the object