configuration from class and method