better log and clean code
support for blob type