logging and thread order were added