added some utitlity methods