mantis 3679: move part of code from the constructor to attach() because
we need to have the user interaction here - not a good idea in the first
place