added some more convenience functions