add possibility for logging