now running with history and sub process