add methods to rootscope