added simulation thread