added show_earnings semaphore flag