add model helper methods and finish namespacing