cedit
2016-08-12 Ian Kellinggood working version