add some commonly-used methods.