revised for use with infowrap