adding charset, updating categories, errorhandling