for this, it would be really nice to interface against boost   *sigh*