implements initialize method refs #148
Merge branch 'refs-148'