errors and warning should be logged, message variable is useless etc.