fixed the parsing and processing of target classes