clean polimophic deletion: adding desctructors on virtual classes
adding detection of profile parameter in configuration file