added a proper callback to the process simulator