copyng functionality from meta to classify
small fixes