added carrierwave
fixed json error