added some helper stuff