code std: update codebase to current std.

addressed review feedback