adding class types logging capability as well