fix formatting, make current namespace buffer local
ensure namespace is set correctly at runtime by namespace macro