task class is taken from config