pulled up some methods into a base class