update logger statements in apih