fix truncate. cleanup gems