everything working with synchronous thread execution