improved logging ability