initialize properties in helper method rather than constructor, otherwise the mojo parameters seem to be null