some fixes and tweaks, refs #123