added some convenience functionality