added optional flag to initialize() deciding whether to (re)read inputs