refs #666 some rubbish need checking if has any importence