prototyping dynamictwain
minor changes sources