add carrierwave, fix minor bugs