pass mime for binary creation & improve security of collections