add some util methods