added namespaces to vars, and protocols