surrended one time with str() in logger function to avoid futher problems