add initializer to detect mime-type correctly