move init code to #initialize, refs #5